home *** CD-ROM | disk | FTP | other *** search
/ Champak 122 / Vol 122.iso / games / need_for.swf / scripts / frame_10 / DoAction.as
Encoding:
Text File  |  2011-01-06  |  641 b   |  30 lines

  1. if(tim > 0)
  2. {
  3.    score += 2;
  4.    scorepanel = String(score);
  5.    tim -= 1;
  6.    tick_Sound.start();
  7.    min = Math.floor(tim / 60);
  8.    dsek = Math.floor((tim - 60 * min) / 10);
  9.    sek = Math.floor(tim - 60 * min - 10 * dsek);
  10.    timepanel = min + ":" + dsek + sek;
  11. }
  12. if(time_wait > 36)
  13. {
  14.    gotoAndStop("gogogo");
  15.    play();
  16.    tim = 40 + (numlevel - 1) * 10;
  17.    min = Math.floor(tim / 60);
  18.    dsek = Math.floor((tim - 60 * min) / 10);
  19.    sek = Math.floor(tim - 60 * min - 10 * dsek);
  20.    timepanel = min + ":" + dsek + sek;
  21. }
  22. if(tim == 0)
  23. {
  24.    time_wait += 1;
  25. }
  26. if(time_wait == 30)
  27. {
  28.    engine_start_Sound.start();
  29. }
  30.